{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>收款记录列表</strong></li>
	</ol>
</div>


<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('search')}">
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-2">
					<div class="input-group">
					<!--	<a href="{:url('add')}" class="btn btn-primary btn-outline">添加</a>-->
					</div>
				</div>
			</div>
		</div>
   
		  <div class="row"> 
        			收款人姓名
                                	<input type="text" id="name" name="name" value="" placeholder="请输入收款人姓名" class="blank" />
                                	审核状态<select class="blank" name="status">
     				         <option value="0">请选择</option>                            
                             <option value="1">成功</option>
                             <option value="2">失败</option>
                               </select>
                                         添加时间<input type="text" id='add_time' name='add_time'   onclick='WdatePicker()'  placeholder="开始时间" class="blank" />
						            <input type="text" id='end_time' name='end_time'   onclick='WdatePicker()'  placeholder="结束时间" class="blank" />
                                  <input type='hidden' name="end_time"  value="2017-4-1" >				
								<span class="blank" style="border-radius:0px;border:1px;"><button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> </span>
					  </div>
        </form>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
								<th>id</th>
								<th>收款人电话</th>
								<th>收款人姓名</th>
								<th>付款人电话</th>
								<th>付款人姓名</th>
								<th>金额</th>
								<th>支付方式</th>
								<th>时间</th>								
								<th>状态</th>
							</tr>
						</thead>
						<tbody>
							{foreach name="list" item="vo"}
							<tr>
								<td>{$vo.id}</td>
								<td>{$vo.mobile1}</td>
								<td>{$vo.name}</td>
								<td>{$vo.mobile2}</td>
								<td>{$vo.usname}</td>
								<td>{$vo.money}</td>
								<td>
									{if $vo.pay_type == 1}
									余额
									{elseif $vo.pay_type == 2}
									微信
									{elseif $vo.pay_type == 3}
									支付宝
									{else}
									银联
									{/if}
								</td>
								<td>{$vo.add_time}</td>
								<td>
									{if $vo.status == 1}
									成功
									{else}
									失败
									{/if}
								</td>
							</tr>
							{/foreach}
						</tbody>
					</table>
					<div style="text-align: right;">
                      {$list->render()}
                    </div>
			
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
</script>
<style>
.blank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}